﻿using System.Runtime.Serialization;

namespace Silverlight.Training.Server.Common.Feedbacks
{
    [DataContract(Namespace = ServiceConstants.ServiceNamespace, Name = "{0}Feedback")]
    public class SingleFeedback<T> : Feedback
    {
        [DataMember]
        public T Data { get; set; }

        public SingleFeedback(string message, bool isSuccessful, T data) : base (message, isSuccessful)
        {
            Data = data;
        }
    }
}
